home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Tool Chest / Dev.CD May 97 TC.toast / Sample Code / Overview / CPlusTESample / TESample.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-18  |  1.3 KB  |  52 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------------------
  2.  
  3.     Program:    CPlusTESample 2.0
  4.     File:        TESample.h
  5.     Uses:       Application.h
  6.                 TECommon.h
  7.  
  8.     by Andrew Shebanow
  9.     of Apple Macintosh Developer Technical Support
  10.  
  11.     Copyright © 1989-1990 Apple Computer, Inc.
  12.     All rights reserved.
  13.  
  14. ------------------------------------------------------------------------------------------*/
  15.  
  16. #ifndef __TESAMPLE__
  17. #define __TESAMPLE__
  18.  
  19. // we need resource definitions
  20. #ifndef __TECOMMON__
  21. #include "TECommon.h"
  22. #endif
  23.  
  24. // Since we are based on the Application class, we need its class definitions
  25. #ifndef __APPLICATION__
  26. #include "Application.h"
  27. #endif
  28.  
  29. // TESample is our application class. It is a subclass of TApplication,
  30. // so it only needs to specify its behaviour in areas where it is different
  31. // from the default.
  32. class TESample : public TApplication {
  33. public:
  34.             TESample();                // Our constructor
  35.  
  36. private:
  37.     // routines from TApplication we are overriding
  38.     long    HeapNeeded();
  39.     unsigned long SleepVal();
  40.     void    DoIdle();
  41.     void    AdjustCursor();
  42.     void    AdjustMenus();
  43.     void    DoMenuCommand(short menuID, short menuItem);
  44.     void    OpenADoc(short vRefNum, long dirID, StringPtr fName, OSType fType);
  45.  
  46.     // routines for our own devious purposes
  47.     void    DoNew();
  48.     void    DoOpen();
  49. };
  50.  
  51. #endif
  52.